package com.baicaoyuan.web.repository;


import com.baicaoyuan.web.model.CrowdfundingDO;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 功能描述：众筹
 *
 * @author 罗富祥
 * 创建时间： 2018/1/4
 * 版权：
 */
@Repository
public interface CrowdfundingRepository extends JpaRepository<CrowdfundingDO, Long> {

    Integer countAllByStatusNotIn(List<String> status);

    List<CrowdfundingDO> findAllByStatusNotIn(List<String> status, Pageable pageable);

}
